<?php
/**
 * @copyright Copyright (c) 2021 勾股工作室
 * @license https://opensource.org/licenses/GPL-3.0
 * @link https://www.gougucms.com
 */

declare (strict_types = 1);

namespace app\user\controller;

use app\base\BaseController;
use app\finance\model\XzSalaryDetail;
use think\exception\ValidateException;
use think\facade\Db;
use think\facade\View;

class Myxz extends BaseController
{
    //调部门列表
    public function index()
    {
        if (request()->isAjax()) {
            $param = get_params();

            $where = array();
            $where[] = ['a.delete_time', '=', 0];
            if ($this->uid != 1 && $this->uid != 3) {
                $where[] = ['a.admin_id', '=', $this->uid];
            }
            $whereOr = [];

            $model = new XzSalaryDetail();
            $list = $model->my_get_list($param, $where, $whereOr);
            return table_assign(0, '', $list);
        }  else {
            return view();
        }
    }


}
